//
//  UIViewController+my_Public.h
//  hehe
//
//  Created by Robin on 15/12/14.
//  Copyright © 2015年 HolyShit. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (MY_Public)

- (void)my_push:(UIViewController *)viewController;

- (void)my_push:(UIViewController *)viewController animated:(BOOL)animated;

- (void)my_present:(UIViewController *)viewController;

- (void)my_present:(UIViewController *)viewController animated:(BOOL)animated;

- (UIViewController*)my_pop:(BOOL)animated;

///目前 rootViewController 里面最顶层的 vc
+ (UIViewController*)my_topViewController;

///找到最顶层的viewController
+ (UIViewController*)my_deepestPresentedViewControllerOf:(UIViewController*)viewController;

///该vc的navigationController
- (UINavigationController*)my_navigationController;


@end
